package com.wt.springsamples.tx;

import com.wt.springsamples.model.SysUser;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.AbstractApplicationContext;

public class TxTest {

    public static void main(String[] args) {
//        AbstractApplicationContext applicationContext = new AnnotationConfigApplicationContext(TxConfig.class);
//        TxService txService = applicationContext.getBean("txService",TxService.class);
//        txService.save();

        SysUser sysUser = new SysUser();
        System.out.println(sysUser.getAge()==1);
    }
}
